﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace SkillSystem
{
    /// <summary>
    /// 技能系统入口
    /// </summary>
    public class SkillSystemFacade : Singleton<SkillSystemFacade>, IInitable,ISkillManager
    {
        

        public void Init()
        {
            skillManager.Init();
        }

        #region 管理器
        internal ISkillManager skillManager = new SkillManager();

        public SkillData GetSkillDataByID(int id)
        {
           return skillManager.GetSkillDataByID(id);
        }

        public SkillItemData GetSkillItemData(int id)
        {
            return skillManager.GetSkillItemData(id);
        }

        public SkillReceiverBase GetReceiver(int id)
        {
            return skillManager.GetReceiver(id);
        }

        public ISkillItemLinker GetItemLinker(SkillItemLinkerType linkerType)
        {
            return skillManager.GetItemLinker(linkerType);
        }

        public IDamageResultSolver GetDamageResultSolver(DamageResultType resultType)
        {
            return skillManager.GetDamageResultSolver(resultType);
        }

        #endregion
    }
}
